package com.weirdor.wxchat;

import com.weirdor.wxchat.www.listen.ApplicationReadyEventListener;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;

public class ServletInitializer extends SpringBootServletInitializer {

	@Override
	protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {

		System.out.println("***************************************************************");
		System.out.println("启动 www...");

		application.sources(Web.class)

				.listeners(new ApplicationReadyEventListener());

		return application;
	}

}
